package main

import (
	"log"
	"primus/k8s-enhance-controller/handlers/deployment"
	k8s_service "primus/kitex_gen/k8s/k8sservice"
	"primus/pkg/adapter/k8s"
)

func main() {
	k8s.CreateClientsByCluster("https://121.37.173.206:6443", "C:\\Users\\damon.wang\\config")
	svr := k8s_service.NewServer(&deployment.K8sServiceImpl{
		Deployment:        k8s.NewDeployment(),
		Service:           k8s.NewService(),
		HPA:               k8s.NewHPA(),
		NameSpace:         k8s.NewNamespce(),
		//IDbService:        nil,
		//CheckerRepo:       nil,
	})

	err := svr.Run()


	if err != nil {
		log.Println(err.Error())
	}
}
